MySQL: Can't update table 'orders' in stored function

visit shbcf.ru